package com.myworld.auth.service;

import lombok.Data;
import lombok.ToString;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;

/**
 * 保存用户信息类
 */
@Data
@ToString
public class UserJwt extends User {
    //用于记录自己定义的用户信息
    private String id;

    public UserJwt(String username, String password, Collection<? extends GrantedAuthority> authorities) {
        super(username, password, authorities);
    }
}
